﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sotipha.Web.Views.CoreFrontEnd;
using Axis.BusinessObject;

namespace Sotipha.Web.Views.Contact
{
    public partial class Contact : CPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CCoreFrontEnd Core = new CCoreFrontEnd();
            string ID = "-1";
            if (Request.QueryString["ID"] != null)
                ID = Request.QueryString["ID"].ToString();
            CConfigSite Item = Core.GetContent(ID);
            if (Session["lang"].ToString() == "vi")
            {
                //  ltrAbout.Text = "Giới thiệu về Song Tiến Phát";
                switch (ID)
                {
                    case "7":
                        ltrContact.Text = "CHĂM SÓC KHÁCH HÀNG";
                        break;
                    case "8":
                        ltrContact.Text = "THÔNG TIN GIAO HÀNG";
                        break;
                    case "9":
                        ltrContact.Text = "ĐẶT HÀNG & THANH TOÁN";
                        break;
                    case "10":
                        ltrContact.Text = "ĐỔI & TRẢ HÀNG";
                        break;
                    case "11":
                        ltrContact.Text = "RIÊNG TƯ & BẢO MẬT";
                        break;
                }
                if (Item != null)
                    ltrContent.Text = Item.Content_VI;
            }
            else
            {
                switch (ID)
                {
                    case "7":
                        ltrContact.Text = "CUSTOMER SERVICE";
                        break;
                    case "8":
                        ltrContact.Text = "SHIPPING INFORMATION";
                        break;
                    case "9":
                        ltrContact.Text = "ORDERING & PAYMENT";
                        break;
                    case "10":
                        ltrContact.Text = "RETURNS & EXCHANGES";
                        break;
                    case "11":
                        ltrContact.Text = "PRIVACY & SECURITY";
                        break;
                }
                if (Item != null)
                    ltrContent.Text = Item.Content_EN;
            }

        }
    }
}